Fix compilation of addpm with MinGW64.
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Mar 2013 07:21:43 +0000 (09:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Mar 2013 07:21:43 +0000 (09:21 +0200)
 nt/addpm.c (_WIN32_IE) [_W64]: Move after inclusion of standard
 headers, since that's where _W64 is declared by MinGW64.

nt/ChangeLog
nt/addpm.c

index 33352c52aa4d465e92fa7279d5bc45a2838c67b1..e853e5b82f31d9d2ca0b1a8d255d2120eb85fb3c 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-27  Eli Zaretskii  <eliz@gnu.org>
+
+       * addpm.c (_WIN32_IE) [_W64]: Move after inclusion of standard
+       headers, since that's where _W64 is declared by MinGW64.
+
 2013-03-26  Eli Zaretskii  <eliz@gnu.org>
 
        * inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS): Don't define.
index 8079d51dd64b024d48143f739b77e39d47e8331e..688e0167334e15ac21504a9143ed35e5690380dd 100644 (file)
@@ -34,6 +34,10 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    installed, then the DDE fallback for creating icons the Windows 3.1
    progman way will be used instead, but that is prone to lockups
    caused by other applications not servicing their message queues.  */
+#include <stdlib.h>
+#include <stdio.h>
+#include <malloc.h>
+
 /* MinGW64 defines _W64 and barfs if _WIN32_IE is defined to anything
    below 0x500.  */
 #ifndef _W64
@@ -45,9 +49,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <windows.h>
 #include <shlobj.h>
 #include <ddeml.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <malloc.h>
 
 HDDEDATA CALLBACK
 DdeCallback (UINT uType, UINT uFmt, HCONV hconv,